#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project : POS_api_test_project 
@File    : assert_method_enum.py
@IDE     : PyCharm 
@Author  : Mario
@Date    : 2022/5/27 11:44 
@Describe: 断言方法枚举
"""
from enum import Enum, unique


@unique
class AssertMethod(Enum):
    # 是否相等
    EQUALS = "=="
    # 判断实际结果小于预期结果
    LESS_THAN = "lt"
    # 判断实际结果小于等于预期结果
    LESS_THAN_OR_EQUALS = "le"
    # 判断实际结果大于预期结果
    GREATER_THAN = "gt"
    # 判断实际结果大于等于预期结果
    GREATER_THAN_OR_EQUALS = "ge"
    # 判断实际结果不等于预期结果
    NOT_EQUALS = "not_eq"
    # 判断字符串是否相等
    STRING_EQUALS = "str_eq"
    # 判断长度是否相等
    LENGTH_EQUALS = "len_eq"
    # 判断长度大于
    LENGTH_GREATER_THAN = "len_gt"
    # 判断长度大于等于
    LENGTH_GREATER_THAN_OR_EQUALS = 'len_ge'
    # 判断长度小于
    LENGTH_LESS_THAN = "len_lt"
    # 判断长度小于等于
    LENGTH_LESS_THAN_OR_EQUALS = 'len_le'
    # 判断期望结果内容包含在实际结果中
    CONTAINS = "contains"
    # 判断实际结果包含在期望结果中
    CONTAINED_BY = 'contained_by'
    # 检查响应内容的开头是否和预期结果内容的开头相等
    STARTSWITH = 'startswith'
    # 检查响应内容的结尾是否和预期结果内容相等
    ENDSWITH = 'endswith'
